using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using way.controller;
using way.dao;
using way.util;

namespace way.model
{
    public class InstanceManage
    {
        #region MenuController
        private static class MenuControllerInstance
        {
            public static MenuController controller = new MenuController();
        }
        public static MenuController getMenuController()
        {
            return MenuControllerInstance.controller;
        }
        #endregion
        #region MenuService
        private static class MenuServiceInstance{
           public static IMenuService service = new MenuService();
        }
        public static IMenuService getMenuService()
        {
            return MenuServiceInstance.service;
        }
        #endregion
        #region MenuMapper
        private static class MenuMapperInstance
        {
            public static IMenuMapper mapper = new MenuMapper();
        }
        public static IMenuMapper getMenuMapper()
        {
            return MenuMapperInstance.mapper;
        }
        #endregion
        #region MenuCore
        private static class MenuCoreInstance
        {
            public static MenuCore core = new MenuCore();
        }
        public static MenuCore getMenuCore()
        {
            return MenuCoreInstance.core;
        }
        #endregion
        #region WinformUtil
        private static class WinformUtilInstance
        {
            public static WinformUtil winfrom = new WinformUtil();
        }
        public static WinformUtil getWinformUtil()
        {
            return WinformUtilInstance.winfrom;
        }
        #endregion

        #region CoreUtil
        private static class CoreUtilInstance
        {
            public static CoreUtil util = new CoreUtil();
        }
        public static CoreUtil getCoreUtil()
        {
            return CoreUtilInstance.util;
        }
        #endregion

        #region

        #endregion
    }
}
